<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" action="/Admin/ApplyUsers/applyList" method="post">
    <input type="hidden" name="pageNum" value="<?php echo ($page['pageNum']); ?>"/>
<input type="hidden" name="numPerPage" value="<?php echo ($page['numPerPage']); ?>" />
    <input type="hidden" name="pid" value="<?php echo ($parameter['pid']); ?>"/>
</form>
<style>tr td,th{text-align:center}.typestyle{padding: 2px 6px;font-size: 13px;color: #fff;border-radius: 4px;}</style>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="/Admin/ApplyUsers/applyList/" method="post">
    	<input type="hidden" name="pid" value="<?php echo ($parameter['pid']); ?>"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>姓名：</label>
                    <input type="text" name="username" value="<?php echo ($search['username']); ?>" style="width:110px">
                </li>
                <li>
                    <label>状态：</label>
                    <select name="status">
                        <option value="0">请选择</option>
                        <option value="2" <?php if($search['status'] == 2): ?>selected="selected"<?php endif; ?>>已读</option>
                        <option value="1" <?php if($search['status'] == 1): ?>selected="selected"<?php endif; ?>>未读</option>
                    </select>
                </li>
                <li>选择时间：<input type="text" name="checktime" style="width:110px" value="<?php echo ($search['checktime']); ?>" class="date"  dateFmt="yyyy-MM-dd" minDate="{%y-1}-%M-%d" /></li>
            </ul>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar" style="background:none;">
        <ul class="toolBar">
            <li>
                <a href="/Admin/ApplyUsers/check/id/{sid_user}" class="edit" target="selectedTodo" rel="id" posttype="string" title="设为已读">
                    <i class="iconfont">&#xe625;</i>
                    <span>设为已读</span>
                </a>
            </li>

            <li>
                <a class="delete" href="<?php echo U('ApplyUsers/remove',array('model'=>$parameter['model']));?>" target="selectedTodo" rel="id" posttype="string" title="你确定要批量删除吗？">
                    <i class="iconfont">&#xe611;</i>
                    <span>删除</span>
                </a>
            </li>

        </ul>
    </div>
    <table class="table" width="100%" layoutH="206">
        <thead>
            <tr>
                <th width="3%" class="txtMid">
                    <input type="checkbox" group="id" class="checkboxCtrl">
                </th>
                <th width="5%">编号</th>
                <th width="20%">用户姓名</th>
                <th width="10%">性别</th>
                <th width="20%">电话</th>
                <th width="15%">所在地区</th>
	            <th width="10%">申请时间</th>
	            <th width="10%">是否已读</th>
            </tr>
        </thead>
        <tbody>
        <?php if($dataList|count > 0): if(is_array($dataList)): $i = 0; $__LIST__ = $dataList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$volist): $mod = ($i % 2 );++$i;?><tr target="sid_user" rel="<?php echo ($volist['id']); ?>" >
                <td class="txtMid">
					<?php if($volist['status'] == 0): ?><input name="id" value="<?php echo ($volist['id']); ?>" type="checkbox"><?php endif; ?>
                </td>
                <td><?php echo ( $page['pageNum'] - 1 ) * $page['numperpage'] + ( $key + 1 );?></td>
                <td><?php echo ($volist['username']); ?></td>
                <td>
                	<?php if($volist['sex'] == '男'): ?><span class="typestyle" style="line-height:60px;background-color:#63B8FF;">男</span>
                    <?php else: ?>
                    	<span class="typestyle" style="line-height:60px;background-color:#FF6EB4;">女</span><?php endif; ?>
                </td>
                <td><?php echo ($volist['tel']); ?></td>
				 <td><?php echo ($volist['city']); ?></td>
                <td><?php echo ($volist['addtime']); ?></td>
                <td>
                    <?php if($volist['status'] == 0): ?><span class="typestyle" style="line-height:60px;background-color:#EE3B3B;">未读</span>
                    <?php else: ?>
                    	<span class="typestyle" style="line-height:60px;background-color:#90EE90;">已读</span><?php endif; ?>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <?php else: ?>
            <tr><td colspan="10" style="text-align:center;">没有数据!!!</td></tr><?php endif; ?>
        </tbody>
    </table>
    <div class="panelBar" style="background:none;">
    <div class="pages">
        <span>显示</span>
        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
            <?php if(is_array($page['numPerPageArray'])): foreach($page['numPerPageArray'] as $key=>$vo): ?><option value="<?php echo ($vo); ?>"<?php if($vo == $page['numPerPage']): ?>selected='selected'<?php endif; ?>><?php echo ($vo); ?></option><?php endforeach; endif; ?>
        </select>
        <span>条，共<?php echo ($page['all']); ?>条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="<?php echo ($page['all']); ?>" numPerPage="<?php echo ($page['numPerPage']); ?>" pageNumShown="10" currentPage="<?php echo ($page['pageNum']); ?>"></div>
</div>
</div>